package com.whately.core.base.exception;


/**
 *
 *  Gateway异常父类
 */
public class GatewayException extends  Exception{

    private int code;
    private String desc;

    /**
     */
    public GatewayException(int code, String desc){
       this.code = code;
       this.desc=desc;

    }

    @Override
    public String getMessage() {
        return "[" + this.code + ":" + this.desc + "]";
    }
    public String getDesc() {
        return desc;
    }
    public int getErrorCode() {
        return code;
    }
}
